settings object
This method will delete a product's data store.
bool remove_product()
Parameters:
None.
Return value:
true on success, false on failure.
Remarks:
If the product's store has any remaining values, these will also be removed.
If a company name is used and this is the last product within it, the company key is also removed.
If the games key contains no more companies or individual products, it too is removed.
Example:
// Delete our game from the registry.
void main()
{
settings game_data;
bool success=game_data.setup("Testtime Interactive", "Bonebreaker", false);
if(!success)
{
alert("Error", "Could not access the registry.");
exit();
}
success=game_data.remove_product();
if(!success)
{
alert("Error", "Could not remove Bonebreaker's data store.");
exit();
}
}